extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]珍珠之泪"
	att.maxHp = 500
	att.cd = 0.2
	info = "<亡语>当佩戴者死亡时，给全体敌人附加10层<霜冻><烧蚀>\n[color=#DC143C]同时装备三件时可升级[/color]"
func _connect():
	._connect()
	masCha.connect("onDeath",self,"run")

func run(atkInfo):
	deathWord()

func deathWord():
	for i in masCha.getAllChas(1):
		masCha.castBuff(i, buff.b_shuangDong.new(10))
		masCha.castBuff(i, buff.b_shaoShi.new(10))

func upgrade():
	name = "[color=#FFFF00][史诗]珍珠之泪"
	info = "当佩戴者死亡时，给全体敌人附加10层<霜冻><烧蚀>"
	att.maxHp = 1500
	att.cd = 0.5